﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
using System.Xml;

namespace THenu.TinyTools.ZDemonstrate
{
    public partial class FrmDemonstrate : Form
    {
        public FrmDemonstrate()
        {
            InitializeComponent();
        }

        private void FrmDemonstrate_Load(object sender, EventArgs e)
        {
            Assembly demoAssembly = System.Reflection.Assembly.GetExecutingAssembly();
            AssemblyName[] names = demoAssembly.GetReferencedAssemblies();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                XmlDocument xmlDoc = new XmlDocument();
                xmlDoc.Load(@"C:\Users\Administrator\Desktop\GoogleData\库前区域B - 副本.kml");

                XmlElement bjtest = xmlDoc.DocumentElement;

                XmlNodeList xmlnl = bjtest.SelectNodes(@"//kml/Document/Placemark/Polygon/outerBoundaryIs/LinearRing/coordinates");


                XmlNode xnCoorv = bjtest.SelectSingleNode(@"//kml/Document/Placemark/Polygon/outerBoundaryIs/LinearRing/coordinates");


            }
            catch (Exception ex)
            {
                
                throw;
            }
        }
    }
}
